package com.xinfan.io.writer;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

/**
 * @Author xin
 * @Date 2022/6/8 19:52
 * @Version 1.0
 */
public class BufferedWriter_ {
    public static void main(String[] args) throws IOException {

        BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter("G:\\桌面\\out.txt",true));
        bufferedWriter.newLine();
        bufferedWriter.write("我是新来的");
        bufferedWriter.close();///!!!!!一定记住关流
    }
}
